﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Orchard;
using Orchard.Environment.Extensions;
using So.ShapeViewCounter.Models;

namespace So.ShapeViewCounter.Services
{
    public interface IShapeUserViewCounterService : IDependency
    {
        void UpSertShapeUserView(string shapeName, int contentItemId, int userId);
        ShapeUserViewCounterPartRecord GetLastUserShapeView(string shapeName, int contentItemId, int userId);
        int GetTotalContentItemShapeViewCount(string shapeName, int contentItemId);
        int GetTotalContentItemShapeViewCount(int contentItemId);
        IEnumerable<int> GetViewedContentIds(string shapeName, int userId);
    }
}
